import { createStore } from "vuex";

const store=createStore({
    state:{
        count:0,
        name:'你好啊，vue!'
    },
    mutations:{
        increment: (state) => {
            state.count=state.count+2
            console.log("我是store里的方法呀")
        }
    },
    action:{

    }
})
export default store